/**
 * 
 */
package com.brother.goallife.dto;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.brother.goallife.AbstractGoallifeEntity;

/**
 * @author anhtuan_truong
 * 
 */
@Entity
@Table(name = "T_FRIEND_LIST")
public class FriendList extends AbstractGoallifeEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7663064241400491270L;

	private Member owner;
	private byte[] content;

	// Mapping unidirectionally
	@ManyToOne(targetEntity = Member.class)
	@JoinColumn(name = "OWNER")
	public Member getOwner() {
		return owner;
	}

	public void setOwner(Member owner) {
		this.owner = owner;
	}

//	@Column(name="CONTENT")
	// TODO:
	@Transient
	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

}
